FROM node:11.1.0-alpine

ENV TZ Asia/Shanghai

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
  && apk add --update --no-cache git tzdata \
  && npm config set unsafe-perm true \
  && npm config set registry https://registry.npm.taobao.org \
  && npm install hexo-cli -g

WORKDIR /Hexo

EXPOSE 4000

# CMD [ "hexo", "s" ]
